<%@ include file="../common/IncludeTop.jsp"%>

<div id="BackLink">
    <a href="main">Return to Main Menu</a>
</div>

<div id="Catalog">

    <div id="Cart">

        <h2>Shopping Cart</h2>

        <form action="viewCart" method="post">
            <table>
                <tr>
                    <th><b>Item ID</b></th>
                    <th><b>Product ID</b></th>
                    <th><b>List Price</b></th>
                    <th><b>Quantity</b></th>
                    <th><b>Description</b></th>
                    <th><b>TotalPrice</b></th>
                    <th>&nbsp;</th>
                </tr>

                <%--                <c:if test="${sessionScope.cart.numberOfItems == 0}">--%>
                <%--                    <tr>--%>
                <%--                        <td colspan="8"><b>Your cart is empty.</b></td>--%>
                <%--                    </tr>--%>
                <%--                </c:if>--%>

                <c:forEach var="viewcartItem" items="${sessionScope.userCartList}">
                    <tr>
                        <td>
                            <a href="viewItem?itemId=${viewcartItem.itemid}">
                                    ${viewcartItem.itemid}
                            </a>
                        </td>
                        <td>
                                ${viewcartItem.productid}
                        </td>
                        <td>
                                ${viewcartItem.listprice}
                        </td>
                        <td>
                                ${viewcartItem.number}
                        </td>
                        <td>
                                ${viewcartItem.descn}
                        </td>

                        <td>

                        </td>
                        <td>

                        </td>
                    </tr>
                </c:forEach>
            </table>
        </form>

    </div>

    <%--<div id="MyList">--%>
    <%--<c:if test="${sessionScope.accountBean != null}">--%>
    <%--<c:if test="${!sessionScope.accountBean.authenticated}">--%>
    <%--<c:if test="${!empty sessionScope.accountBean.account.listOption}">--%>
    <%--<%@ include file="IncludeMyList.jsp"%>--%>
    <%--</c:if>--%>
    <%--</c:if>--%>
    <%--</c:if>--%>
    <%--</div>--%>

    <div id="Separator">&nbsp;</div>
</div>

<%@ include file="../common/IncludeBottom.jsp"%>